package config

import (
	"BiYeProServer/src/service"
	_ "BiYeProServer/src/service"
	"github.com/gin-gonic/gin"
)

var GetRouter = map[string]gin.HandlerFunc{
	"/api/get_lunbo":             service.GetLunbo,
	"/api/get_matches":           service.GetMatches,
	"/api/get_questions":         service.GetQuestions,
	"/api/get_question_detail":   service.SearchQuestionDetail,
	"/api/get_codes":             service.GetCodes,
	"/api/get_code_by_id":        service.GetCodeById,
	"/api/get_recommend_by_user": service.GetRecommend,
}

var PostRouter = map[string]gin.HandlerFunc{
	"/api/user/login":    service.Login,
	"/api/user/register": service.Register,
	"/api/question/save": service.SaveQuestion,
	"/api/code/save":     service.SaveCode,
}

//type Server interface {
//	Run()
//}
//
//type ServerImpl struct {
//	Server
//}
//
//func (srv *ServerImpl) Run()  {
//
//}
